package com.geek.service;

import com.geek.domain.Orders;
import com.geek.mapper.OrdersMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrdersService {

    @Autowired
    private OrdersMapper ordersMapper;

    public void batchInsert(List<Orders> ordersList) {
        ordersMapper.batchInsert(ordersList);
    }


    public List<Orders> query() {
        return ordersMapper.query();
    }
}
